home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: Why NULL
- Sent: 5/23/96 7:24 PM
- Received: 5/24/96 8:49 AM
- From: Damon Cokenias, cokenias@mtn-palace.com
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- >Dear ODF Team:
- >
- >Why does ODF defines a NULL macro instead of using C++'s nil? I
- >suppose there is a good reason, but I cannot figure it out...
- >
- >Serge
-
- 'nil' is actually Pascal. The only reason you see it in Mac C/C++ code is
- because that's how Inside Mac tought us to program. C++ defines NULL in
- locale.h, but never defines nil. (These are the CodeWarrior headers I am
- looking at).
-
- Personally, I hate NULL. I find it awkward to type and ugly in source
- code. Nobody is forcing you to use it of course, just #define nil NULL.
- But you knew that.
-
- -Damon
-
-
- +-----------------------------------------------------------------------+
- | /\ Damon Cokenias |
- | /^^\ cokenias@mtn-palace.com |
- | /____\ Visit the Mountain Palace at http://www.netgate.net/~cokenias |
- +-----------------------------------------------------------------------+
-
-